$(function() {
	_myPosition("#head-display-a", "#head-display");
	_myPosition(".head-position-par", ".head-myself");

	$(".head-display-city a").click(function() {
		$(".head-a")[0].innerHTML = this.innerHTML;
		$(this).css({
			"color": "#AD2424"
		});
		$(".head-display-city a").not($(this)).css("color", "#666666")
	});
	_inputfun();
		$(".wine-left-div").mouseover(function() {
		$(this).children(".wine-jiantou").show();
		//双数为左边的显示，单数为右边的悬浮
		$(this).next(".wine-left-children").show().on("mouseover", function() {
			$(this).show();
		});
	});
	$(".wine-left-div").mouseout(function() {
		$(".wine-jiantou").hide();
		$(this).next(".wine-left-children").hide().on("mouseout", function() {
			$(this).hide()
		});;
	});
	

});

function _inputfun() {
	$(".head-input").val("春意苏醒，酒香撩人").css("color", "#9B9E9E");
	//input获取焦点时的函数
	$(".head-input").focus(function() {
		$(".head-input").val("");
	});
	$(".head-input").blur(function() {
		$(".head-input").val("春意苏醒，酒香撩人").css("color", "#9B9E9E");
	});
}

//显示隐藏函数
function _myPosition(own, own2) {
	$(own).mouseover(function() {
		$(own2).show();
	});
	$(own).mouseout(function() {
		$(own2).hide();
	});
}